package util;

public class Test2 {

	/**
	 * @param args
	 */
	public static void send(String email) {
	    SendMail sendMail = new SendMail();
	    sendMail.setSmtpServer("smtp.qq.com");
	    sendMail.setUsername("735916558");
	    sendMail.setPassword("87136796@lizhi");
	    sendMail.setFrom("735916558@qq.com");
	    sendMail.addTo("735916558@qq.com");
	//  sendMail.addTo("1517461564@qq.com");
	    sendMail.setSubject("�ʼ��������");
	    sendMail.setContent("Hi,JavaMail.\n���");
	//  sendMail.addAttachmentNames("C:\\Users\\Administrator\\Desktop\\JavaMail
//	ʹ�òο�.txt");
//	    sendMail.addAttachmentNames("C:/Users/Administrator/Desktop/����.txt");
	//  sendMail.addAttachmentNames("C:/Users/Administrator/Desktop/�������
//	��.pdf");
	    if(sendMail.sendMail()){
	    System.out.println("�ʼ����ͳɹ�");
	    }
	}

}
